package test3;

import java.io.*;

public class Parking {
	public static void main(String[] args) throws Exception{
	    //int i;
	    Vehicles v = new Vehicles();
	    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
	    System.out.print("Enter vehicle type (1:Car 2:Motor):");
	    int type = Integer.parseInt(bf.readLine());
	    v.check_type(type);
	    System.out.print("Enter start time: ");
	    String st_time = bf.readLine();
	    v.start_time(st_time);
	    System.out.print("Enter end time: ");
	    String en_time = bf.readLine();
	    v.end_time(en_time);
	    v.time_dif();
	    v.totalFee(type);
	    
	}

}
